<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript" src="jquery-1.7.1.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	var pElement = document.getElementsByTagName("p")[0];
	//Convert dom obj to jquery obj
	var pElementjQuery = $(pElement);
	//alert("DOM Object's text:"+pElement.innerHTML);
	//alert("jQuery Obj's text:"+pElementjQuery.html());
    var cm = $("#clickMe");
	//convert jquery obj to dom obj
	
	var t =cm[0] // t is dom obj
	alert(t.innerHTML); 
	
	//Convert jQuery obj to dom obj(2nd way)
	var s = cm.get(0);
	alert(s.innerHTML);
}
		
		);

</script>
<body>
<p id="clickMe">Click Me</p>


</body>
</html>